find maximum number from a list in java